<%@page import="java.util.ArrayList"%>
<%@page import="com.shsh.safemanage.dao.AccidentDao"%>
<%@page import="com.shsh.safemanage.model.ProblemTransfer"%>
<%@page import="com.shsh.safemanage.model.User"%>
<%@page import="com.shsh.safemanage.dao.DaoCreator"%>
<%@page import="com.shsh.safemanage.dao.ProblemDao"%>
<%@page import="com.shsh.safemanage.util.Constants"%>
<%@page import="com.shsh.safemanage.util.Util"%>
<%@page language="java" pageEncoding="UTF-8"%>
<%@page import="com.shsh.safemanage.model.Role"%>
<%@page import="com.shsh.safemanage.model.AccidentFacade"%>
<%@page import="com.shsh.safemanage.model.AbstractAccident"%>
<%@page import="com.shsh.safemanage.action.UserAction"%>
<%@page import="com.shsh.safemanage.action.ActionCreator"%>
<%@page import="java.util.List"%>
<%
{
Integer row = (Integer)request.getAttribute(Constants.REQUEST_ATTRIBUTE_ROW);
AccidentFacade facade = (AccidentFacade)request.getAttribute(Constants.REQUEST_ATTRIBUTE_ACCIDENT_FACADE);
%>
	<tr>
		<td class="a_text3" style="border-bottom:1px #E3E3E3 dashed;border-right:1px #E3E3E3 dashed; <%=(row % 2 == 1)? "background: #F8F8FF":"background: #DCDCDC"%>"
			 colspan="2"><%=facade.getDepartment1Name()==null?"&nbsp;":facade.getDepartment1Name()%></td>
		<td class="a_text3" style="border-bottom:1px #E3E3E3 dashed;border-right:1px #E3E3E3 dashed; <%=(row % 2 == 1)? "background: #F8F8FF":"background: #DCDCDC"%>"
			><%=facade.getEquipmentName()==null?"&nbsp;":facade.getEquipmentName()%></td>
		<td class="a_text3" style="border-bottom:1px #E3E3E3 dashed;border-right:1px #E3E3E3 dashed; <%=(row % 2 == 1)? "background: #F8F8FF":"background: #DCDCDC"%>"
			><%=facade.getAccidentType()==null?"&nbsp;":facade.getAccidentType()%></td>
		<td class="a_text3" style="border-bottom:1px #E3E3E3 dashed;border-right:1px #E3E3E3 dashed; <%=(row % 2 == 1)? "background: #F8F8FF":"background: #DCDCDC"%>"
			><%=facade.getAccidentName()==null?"&nbsp;":facade.getAccidentName()%></td>
		<td class="a_text3" style="border-bottom:1px #E3E3E3 dashed;border-right:1px #E3E3E3 dashed; <%=(row % 2 == 1)? "background: #F8F8FF":"background: #DCDCDC"%>"
			align="center"><%=Util.formatDateTime(facade.getAccidentTime())%></td>
		<td class="a_text3" style="border-bottom:1px #E3E3E3 dashed;border-right:1px #E3E3E3 dashed; <%=(row % 2 == 1)? "background: #F8F8FF":"background: #DCDCDC"%>"
		 align="center">
			<%
			AbstractAccident accident = facade.getRegisterForm();
			if(Constants.ACCIDENT_STATUS_COMPLETE == accident.getAccidentStatus()) {
			%>
			<a href="javascript:" onclick="loadPageSection('<%=request.getContextPath()%>/accident/read_registerform.jsp', 'mainContentDiv', {id:<%=accident.getId()%>, fromPage:'accident/accident_browse.jsp'}, true)" >详细情况</a>
			<% 
			} else {
			%>
				<font style="color:gray;">未完成</font>
			<%
			}
			%>
		</td>
		<td class="a_text3" style="border-bottom:1px #E3E3E3 dashed;border-right:1px #E3E3E3 dashed; <%=(row % 2 == 1)? "background: #F8F8FF":"background: #DCDCDC"%>"
		 align="center">
			<%
			accident = facade.getInfoSheet();

			if(Constants.ACCIDENT_STATUS_COMPLETE == accident.getAccidentStatus()) {
			%>
			<a href="javascript:" onclick="loadPageSection('<%=request.getContextPath()%>/accident/read_infosheet.jsp', 'mainContentDiv', {id:<%=accident.getId()%>, fromPage:'accident/accident_browse.jsp'}, true)" >浏览</a>
			<% 
			} else {
			%>
				<font style="color:gray;">未完成</font>
			<%
			}
			%>
		</td>
		<td class="a_text3" style="border-bottom:1px #E3E3E3 dashed;border-right:1px #E3E3E3 dashed; <%=(row % 2 == 1)? "background: #F8F8FF":"background: #DCDCDC"%>"
		 align="center">
			<%
			accident = facade.getQuickReport();
			if(Constants.ACCIDENT_STATUS_COMPLETE == accident.getAccidentStatus()) {
			%>
			<a href="javascript:" onclick="loadPageSection('<%=request.getContextPath()%>/accident/read_quickreport.jsp', 'mainContentDiv', {id:<%=accident.getId()%>, fromPage:'accident/accident_browse.jsp'}, true)" >浏览</a>
			<% 
			} else {
			%>
				<font style="color:gray;">未完成</font>
			<%
			}
			%>
		</td>
		<td class="a_text3" style="border-bottom:1px #E3E3E3 dashed;border-right:1px #E3E3E3 dashed; <%=(row % 2 == 1)? "background: #F8F8FF":"background: #DCDCDC"%>"
		 align="center">
			<%
			accident = facade.getReport();
			if(Constants.ACCIDENT_STATUS_COMPLETE == accident.getAccidentStatus()) {
			%>
			<a href="javascript:" onclick="loadPageSection('<%=request.getContextPath()%>/accident/read_report.jsp', 'mainContentDiv', {id:<%=accident.getId()%>, fromPage:'accident/accident_browse.jsp'}, true)" >浏览</a>
			<% 
			} else {
			%>
				<font style="color:gray;">未完成</font>
			<%
			}
			%>
		</td>
		<td class="a_text3" style="border-bottom:1px #E3E3E3 dashed;border-right:1px #E3E3E3 dashed; <%=(row % 2 == 1)? "background: #F8F8FF":"background: #DCDCDC"%>"
		 align="center">
			<%
			accident = facade.getCheckForm1();
			if(Constants.ACCIDENT_STATUS_COMPLETE == accident.getAccidentStatus()) {
			%>
			<a href="javascript:" onclick="loadPageSection('<%=request.getContextPath()%>/accident/read_checkform1.jsp', 'mainContentDiv', {id:<%=accident.getId()%>, fromPage:'accident/accident_browse.jsp'}, true)" >浏览</a>
			<% 
			} else {
			%>
				<font style="color:gray;">未完成</font>
			<%
			}
			%>
		</td>
		<td class="a_text3" style="border-bottom:1px #E3E3E3 dashed;border-right:1px #E3E3E3 dashed; <%=(row % 2 == 1)? "background: #F8F8FF":"background: #DCDCDC"%>"
		 align="center">
			<%
			accident = facade.getCheckForm2();
			if(Constants.ACCIDENT_STATUS_COMPLETE == accident.getAccidentStatus()) {
			%>
			<a href="javascript:" onclick="loadPageSection('<%=request.getContextPath()%>/accident/read_checkform2.jsp', 'mainContentDiv', {id:<%=accident.getId()%>, fromPage:'accident/accident_browse.jsp'}, true)" >浏览</a>
			<% 
			} else {
			%>
				<font style="color:gray;">未完成</font>
			<%
			}
			%>
		</td>
		<td class="a_text3" style="border-bottom:1px #E3E3E3 dashed;border-right:1px #E3E3E3 dashed; <%=(row % 2 == 1)? "background: #F8F8FF":"background: #DCDCDC"%>"
		 align="center">
			<%
			accident = facade.getCheckForm3();
			if(Constants.ACCIDENT_STATUS_COMPLETE == accident.getAccidentStatus()) {
			%>
			<a href="javascript:" onclick="loadPageSection('<%=request.getContextPath()%>/accident/read_checkform3.jsp', 'mainContentDiv', {id:<%=accident.getId()%>, fromPage:'accident/accident_browse.jsp'}, true)" >浏览</a>
			<% 
			} else {
			%>
				<font style="color:gray;">未完成</font>
			<%
			}
			%>
		</td>
	</tr>
<%
}
%>